import { NAV_CHANGE } from '../constent'
const initnav = { type: true }

const app = (state = initnav, action) => {
    const { type, data } = action
    switch (type) {
        case NAV_CHANGE:
            return { type: data }

        default: return state;
    }
}
export default app